package oralExamSchedulingSystemTest;

import oralExamSchedulingSystem.*;

import org.junit.Test;

import entity.Student;
import entity.Class;
import graph.Graph;

import junit.framework.TestCase;


public class TestStudentRecord extends TestCase{
	@Test
	public void test_add_getStudentRecordGraph(){
		StudentRecord sr = new StudentRecord();
		Student s1 = new Student(12012, 1, "TURTLE", 'M');
		Class c1 = new Class("5A");
		sr.addStudent(s1, c1);
		Graph g = sr.getStudentRecordGraph();
		assertEquals(s1, g.findVertexByData(s1).getData());
		
	}
}
